<div class="container clearfix" id="PositionInfo">
<?php

if($dataList){
?>

<table class="info" id="Position-table">
    <colgroup><col width="70">
    <col width="110">
    <col width="80">
    <col width="270">
    <col width="100">
    </colgroup><thead>
    <tr class="g9">
        <th></th>
        <th>标题</th>
        <th width="150">时间</th>
        <th>学校</th>
        <th>&nbsp;</th>
    </tr>
    </thead>
        <tbody>
        <?foreach($dataList as $data){?>
        <tr class=" " id="tr_Position_<?=$data['id']?>">
            <td class="alignright middle"><img src="./images/release.gif" title="已添加描述"></td>
            <td><?=$data['title']?></td>
            <?
            $endDateStr = $data['to_now'] ? ' 至今' : ' 至 ' .$data['to_year'] . '-' .$data['to_month'];
            ?>
            <td align="center"><?=$data['from_year'] . '-' .$data['from_month'] .$endDateStr ?></td>
            <td><?=$data['school']?></td>
            <td class="padding"><a href="index.php?c=MyResume&a=PositionShow&id=<?=$data['id']?>&height=290&width=770&keepThis=true&TB_iframe=true" title="修改此信息" class="icon edit thickbox">修改</a> <a onclick="delItem('Position','<?=$data['id']?>')" href="javascript:void(0);" target="_self" class="icon delete">删除</a></td>
        </tr>
        <?}?>
</tbody></table>

<?}else{?>
        <div class="notfilled">
            <ul class="nodata">
                <li class="think">校内职务可以证明你的管理及组织能力。企业青睐在学校担任干部的学生。&nbsp;&nbsp;<a class="addme thickbox" title="添加校内职务" rel="position" href="index.php?c=MyResume&a=PositionShow&height=305&width=770&keepThis=true&TB_iframe=true">添加</a></li>
                <li class="create">如果没有校内职务，建议你先<a class="discard"  href="javascript:void(0);" onclick="hidearea('Position','position')" >隐藏</a></li>
            </ul>
        </div>
        <script>$("#Position-section h2 a").hide();</script>
<?}?>
</div>